package com.verlet.springbootdemo;

import com.verlet.springbootdemo.simple.nettyrpc.client.scan.EnableNettyRpcClient;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 过滤器@WebFilter 需要添加 @ServletComponentScan，但是不能保证顺序，需要使用FilterRegistrationBean配置
 * <p>
 *
 * {@EnableNettyRpcClient} 需要启动 {@link com.verlet.springbootdemo.simple.nettyrpc.server.NettyRpcServer}
 *
 * @author verlet
 */
@EnableAsync
//@EnableNettyRpcClient
@ServletComponentScan
@SpringBootApplication
public class SpringbootDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDemoApplication.class, args);
    }

}
